<script language="javascript">
	function upAction(act) {ldelim}
		var forma = document.getElementById("formcommand");
		forma.action.value=act;
		forma.submit();
	{rdelim}
</script>
<form id="formcommand" method="post">
	<input type="hidden" name="action" id="action" value=""/>
</form>
<center>
<table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
	
	<tbody>
		{assign var="rowclass" value="uneven"}
		{foreach from=$list item=row}
			<tr class="{$rowclass}">
				{eval var=$row.status assign="stid"}
				{eval var=uploadstatus$stid assign="lngst"}
				<td>
				{if $stid eq 'ok'}
					<img src="images/done.png" width="18" height="18">&nbsp;
				{else}
					<img src="images/todo.png" width="18" height="18">&nbsp;
				{/if}
				{$row.file}
				</td>
				<td>{$lang.$lngst}</td>
			</tr>
			{if $rowclass eq 'even'}
				{assign var="rowclass" value="uneven"}
			{else}
				{assign var="rowclass" value="even"}
			{/if}
		{/foreach}		
	</tbody>

</table>

<p class="usermessage">{$lang.confirmupload}</p>
<form id="formprocess" method="post">
	<input type="hidden" name="action" id="action" value="fileupload"/>
	<input type="hidden" name="fileid" id="fileid" value="{$fileid}"/>
	<input type="hidden" name="op" id="op" value="confirm"/>
	<table border="0" cellpadding="0" cellspacing="0" class="boxform">
		<tr class="uneven">
			<td>{$lang.comment}</td>
			<td><input type="text" name="comment" id="comment" maxlength="255" size="50">
			</td>
		</tr>
		<tfoot>
		<th colspan="2">
		{if $canconfirm eq 'yes'}
			{include file="button.tpl" name=$lang.ok action="processForm('formprocess')"}&nbsp;
		{/if}
		{include file="button.tpl" name=$lang.retry action="upAction('fileupload')"}&nbsp;
		{include file="button.tpl" name=$lang.cancel action="upAction('list')"}</td>
		</th>
		</tfoot>
</table>
</form>
</center>